tools/golang/xenlight: Rework gengotypes.py and generation of *.gen.go
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 13 Oct 2022 13:05:12 +0000 (14:05 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Oct 2022 19:56:57 +0000 (20:56 +0100)
commit3f9d53af25dc7f0a9b05e3497822f1eeb47589d9
tree5acc03a62361deb91a21bd64a1b2e9aa75bbbc5e
parent68d19cfb90a5bb6257e03be3f21c912bac7ec49b
tools/golang/xenlight: Rework gengotypes.py and generation of *.gen.go

gengotypes.py creates both "types.gen.go" and "helpers.gen.go", but
make can start gengotypes.py twice. Rework the rules so that
gengotypes.py is executed only once.

Also, add the ability to provide a path to tell gengotypes.py where to
put the files. This doesn't matter yet but it will when for example
the script will be run from tools/ to generate the targets.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
tools/golang/xenlight/Makefile
tools/golang/xenlight/gengotypes.py